home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 72 6f 6f 6d 2e 68 |Path: ne|wsroom.h|
|00000010| 69 74 63 2e 63 6f 6d 21 | 75 73 65 6e 65 74 0a 46 |itc.com!|usenet.F|
|00000020| 72 6f 6d 3a 20 43 68 72 | 69 73 20 52 75 65 67 67 |rom: Chr|is Ruegg|
|00000030| 65 72 20 3c 63 72 75 65 | 67 67 65 72 40 65 6f 73 |er <crue|gger@eos|
|00000040| 2e 68 69 74 63 2e 63 6f | 6d 3e 0a 4e 65 77 73 67 |.hitc.co|m>.Newsg|
|00000050| 72 6f 75 70 73 3a 20 63 | 6f 6d 70 2e 6c 61 6e 67 |roups: c|omp.lang|
|00000060| 2e 63 2b 2b 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |.c++.Sub|ject: Re|
|00000070| 3a 20 6e 65 65 64 20 68 | 65 6c 70 20 77 69 74 68 |: need h|elp with|
|00000080| 20 66 75 6e 63 74 69 6f | 6e 73 0a 44 61 74 65 3a | functio|ns.Date:|
|00000090| 20 4d 6f 6e 2c 20 32 36 | 20 46 65 62 20 31 39 39 | Mon, 26| Feb 199|
|000000a0| 36 20 31 30 3a 34 39 3a | 35 30 20 2d 30 35 30 30 |6 10:49:|50 -0500|
|000000b0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 48 |.Organiz|ation: H|
|000000c0| 75 67 68 65 73 20 49 6e | 66 6f 72 6d 61 74 69 6f |ughes In|formatio|
|000000d0| 6e 20 54 65 63 68 6e 6f | 6c 6f 67 79 20 43 6f 72 |n Techno|logy Cor|
|000000e0| 70 6f 72 61 74 69 6f 6e | 0a 4d 65 73 73 61 67 65 |poration|.Message|
|000000f0| 2d 49 44 3a 20 3c 33 31 | 33 31 44 36 39 45 2e 33 |-ID: <31|31D69E.3|
|00000100| 36 34 30 40 65 6f 73 2e | 68 69 74 63 2e 63 6f 6d |640@eos.|hitc.com|
|00000110| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 34 |>.Refere|nces: <4|
|00000120| 67 72 71 74 61 24 6d 63 | 62 40 69 78 6e 65 77 73 |grqta$mc|b@ixnews|
|00000130| 33 2e 69 78 2e 6e 65 74 | 63 6f 6d 2e 63 6f 6d 3e |3.ix.net|com.com>|
|00000140| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000150| 73 74 3a 20 72 61 69 6e | 6d 61 6e 2e 68 69 74 63 |st: rain|man.hitc|
|00000160| 2e 63 6f 6d 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |.com.Mim|e-Versio|
|00000170| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|00000180| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|00000190| 20 63 68 61 72 73 65 74 | 3d 75 73 2d 61 73 63 69 | charset|=us-asci|
|000001a0| 69 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |i.Conten|t-Transf|
|000001b0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|000001c0| 74 0a 58 2d 4d 61 69 6c | 65 72 3a 20 4d 6f 7a 69 |t.X-Mail|er: Mozi|
|000001d0| 6c 6c 61 20 32 2e 30 20 | 28 58 31 31 3b 20 49 3b |lla 2.0 |(X11; I;|
|000001e0| 20 53 75 6e 4f 53 20 35 | 2e 34 20 73 75 6e 34 6d | SunOS 5|.4 sun4m|
|000001f0| 29 0a 54 6f 3a 20 77 65 | 6c 6c 73 20 3c 77 65 6c |).To: we|lls <wel|
|00000200| 6c 73 32 40 69 78 2e 6e | 65 74 63 6f 6d 2e 63 6f |ls2@ix.n|etcom.co|
|00000210| 6d 3e 0a 0a 54 68 65 20 | 70 72 6f 62 6c 65 6d 20 |m>..The |problem |
|00000220| 69 73 20 74 68 61 74 20 | 79 6f 75 20 68 61 76 65 |is that |you have|
|00000230| 20 64 65 63 6c 61 72 65 | 64 20 2a 74 77 6f 2a 20 | declare|d *two* |
|00000240| 47 65 74 5f 50 61 79 6d | 65 6e 74 20 66 75 6e 74 |Get_Paym|ent funt|
|00000250| 69 6f 6e 73 20 68 65 72 | 65 2e 0a 4f 6e 65 20 74 |ions her|e..One t|
|00000260| 68 61 74 20 75 73 65 73 | 20 63 61 6c 6c 20 62 79 |hat uses| call by|
|00000270| 20 76 61 6c 75 65 3a 0a | 0a 76 6f 69 64 20 47 65 | value:.|.void Ge|
|00000280| 74 5f 50 61 79 6d 65 6e | 74 28 66 6c 6f 61 74 2c |t_Paymen|t(float,|
|00000290| 20 66 6c 6f 61 74 2c 20 | 69 6e 74 2c 20 66 6c 6f | float, |int, flo|
|000002a0| 61 74 29 3b 0a 0a 61 6e | 64 20 6f 6e 65 20 74 68 |at);..an|d one th|
|000002b0| 61 74 20 75 73 65 73 20 | 63 61 6c 6c 20 62 79 20 |at uses |call by |
|000002c0| 72 65 66 65 72 65 6e 63 | 65 3a 0a 0a 76 6f 69 64 |referenc|e:..void|
|000002d0| 20 47 65 74 5f 50 61 79 | 6d 65 6e 74 28 66 6c 6f | Get_Pay|ment(flo|
|000002e0| 61 74 20 26 6c 6f 61 6e | 5f 61 6d 6f 75 6e 74 2c |at &loan|_amount,|
|000002f0| 66 6c 6f 61 74 20 26 69 | 6e 74 65 72 65 73 74 5f |float &i|nterest_|
|00000300| 72 61 74 65 2c 69 6e 74 | 0a 20 20 20 20 20 20 20 |rate,int|. |
|00000310| 20 20 20 20 20 20 20 20 | 20 20 26 6e 75 6d 62 65 | | &numbe|
|00000320| 72 5f 6f 66 5f 70 61 79 | 6d 65 6e 74 73 2c 66 6c |r_of_pay|ments,fl|
|00000330| 6f 61 74 20 26 70 61 79 | 6d 65 6e 74 29 0a 0a 0a |oat &pay|ment)...|
|00000340| 41 73 20 66 61 72 20 61 | 73 20 74 68 65 20 63 6f |As far a|s the co|
|00000350| 6d 70 69 6c 65 72 20 69 | 73 20 63 6f 6e 63 65 72 |mpiler i|s concer|
|00000360| 6e 65 64 2c 20 74 68 65 | 73 65 20 61 72 65 20 32 |ned, the|se are 2|
|00000370| 20 73 65 70 61 72 61 74 | 65 20 66 75 6e 74 69 6f | separat|e funtio|
|00000380| 6e 73 2c 0a 77 68 65 6e | 20 49 27 6d 20 73 75 72 |ns,.when| I'm sur|
|00000390| 65 20 74 68 61 74 20 79 | 6f 75 20 6d 65 61 6e 74 |e that y|ou meant|
|000003a0| 20 66 6f 72 20 69 74 20 | 74 6f 20 62 65 20 6f 6e | for it |to be on|
|000003b0| 65 2e 0a 0a 53 6f 6c 75 | 74 69 6f 6e 3a 0a 54 68 |e...Solu|tion:.Th|
|000003c0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 70 72 6f 74 6f |e functi|on proto|
|000003d0| 74 79 70 65 20 28 77 68 | 65 72 65 20 79 6f 75 20 |type (wh|ere you |
|000003e0| 64 65 63 6c 61 72 65 20 | 69 74 29 20 61 6e 64 20 |declare |it) and |
|000003f0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 0a 64 65 66 |the func|tion.def|
|00000400| 69 6e 69 74 69 6f 6e 20 | 28 77 68 65 72 65 20 79 |inition |(where y|
|00000410| 6f 75 20 61 63 74 75 61 | 6c 6c 79 20 77 72 69 74 |ou actua|lly writ|
|00000420| 65 20 74 68 65 20 6c 6f | 67 69 63 29 2c 20 6d 75 |e the lo|gic), mu|
|00000430| 73 74 20 68 61 76 65 20 | 74 68 65 0a 73 61 6d 65 |st have |the.same|
|00000440| 20 73 69 67 6e 61 74 75 | 72 65 20 28 6e 61 6d 65 | signatu|re (name|
|00000450| 20 61 6e 64 20 70 61 72 | 61 6d 65 74 65 72 20 6c | and par|ameter l|
|00000460| 69 73 74 29 2e 0a 0a 43 | 68 61 6e 67 65 20 69 74 |ist)...C|hange it|
|00000470| 20 73 6f 20 74 68 61 74 | 20 74 68 65 20 66 75 6e | so that| the fun|
|00000480| 63 74 69 6f 6e 20 70 72 | 6f 74 6f 74 79 70 65 20 |ction pr|ototype |
|00000490| 61 6e 64 20 66 75 6e 63 | 74 69 6f 6e 20 64 65 66 |and func|tion def|
|000004a0| 69 6e 69 74 69 6f 6e 0a | 6d 61 74 63 68 2e 20 55 |inition.|match. U|
|000004b0| 73 65 20 65 69 74 68 65 | 72 20 63 61 6c 6c 20 62 |se eithe|r call b|
|000004c0| 79 20 76 61 6c 75 65 20 | 6f 72 20 63 61 6c 6c 20 |y value |or call |
|000004d0| 62 65 20 72 65 66 65 72 | 65 6e 63 65 2e 0a 0a 43 |be refer|ence...C|
|000004e0| 68 72 69 73 0a 0a 0a 77 | 65 6c 6c 73 20 77 72 6f |hris...w|ells wro|
|000004f0| 74 65 3a 0a 3e 20 0a 3e | 20 20 20 49 20 61 6d 20 |te:.> .>| I am |
|00000500| 6c 65 61 72 6e 69 6e 67 | 20 63 2b 2b 2c 20 49 20 |learning| c++, I |
|00000510| 77 72 6f 74 65 20 74 68 | 69 73 20 70 72 6f 67 72 |wrote th|is progr|
|00000520| 61 6d 20 61 6e 64 20 49 | 20 68 61 76 65 20 61 20 |am and I| have a |
|00000530| 70 72 6f 62 6c 65 6d 20 | 77 69 74 68 20 69 74 0a |problem |with it.|
|00000540| 3e 20 74 68 61 74 20 69 | 20 63 61 6e 74 20 66 69 |> that i| cant fi|
|00000550| 67 75 72 65 20 6f 75 74 | 2e 20 49 20 61 6d 20 64 |gure out|. I am d|
|00000560| 6f 69 6e 20 74 68 69 73 | 20 66 6f 72 20 6d 79 20 |oin this| for my |
|00000570| 63 6c 61 73 73 20 69 6e | 20 63 6f 6c 6c 65 67 65 |class in| college|
|00000580| 2e 20 49 20 61 6d 0a 3e | 20 75 73 69 6e 67 20 70 |. I am.>| using p|
|00000590| 61 73 73 20 62 79 20 72 | 65 66 65 72 65 6e 63 65 |ass by r|eference|
|000005a0| 20 69 6e 20 6d 79 20 66 | 75 6e 63 74 69 6f 6e 73 | in my f|unctions|
|000005b0| 2c 20 61 6e 64 20 20 69 | 20 68 61 76 65 20 61 6e |, and i| have an|
|000005c0| 20 65 72 72 6f 72 20 74 | 68 61 74 0a 3e 20 73 61 | error t|hat.> sa|
|000005d0| 79 73 20 73 6f 6d 65 74 | 68 69 6e 67 20 6c 69 6b |ys somet|hing lik|
|000005e0| 65 2e 2e 2e 2e 20 22 47 | 65 74 5f 70 61 79 6d 65 |e.... "G|et_payme|
|000005f0| 6e 74 20 69 73 20 6e 6f | 74 20 73 75 66 66 69 65 |nt is no|t suffie|
|00000600| 63 69 65 6e 74 6c 79 20 | 64 69 66 66 65 72 65 6e |ciently |differen|
|00000610| 74 0a 3e 20 74 68 65 6e | 20 47 65 74 5f 50 61 79 |t.> then| Get_Pay|
|00000620| 6d 65 6e 74 22 2c 20 6f | 72 20 73 6f 6d 65 74 68 |ment", o|r someth|
|00000630| 69 6e 67 2e 2e 2e 20 49 | 20 64 6f 6e 74 20 75 6e |ing... I| dont un|
|00000640| 64 65 72 73 74 61 6e 64 | 20 77 68 79 2e 0a 3e 20 |derstand| why..> |
|00000650| 54 68 65 20 70 72 6f 67 | 72 61 6d 20 68 61 73 20 |The prog|ram has |
|00000660| 74 68 61 74 20 65 72 72 | 6f 72 20 61 6e 64 20 34 |that err|or and 4|
|00000670| 20 6f 74 68 65 72 20 77 | 61 72 6e 69 6e 67 73 2c | other w|arnings,|
|00000680| 20 49 20 61 6d 20 6e 6f | 74 20 77 6f 72 72 69 65 | I am no|t worrie|
|00000690| 64 0a 3e 20 61 62 6f 75 | 74 20 74 68 65 20 77 61 |d.> abou|t the wa|
|000006a0| 72 6e 69 6e 67 73 2c 20 | 74 68 65 79 20 68 61 76 |rnings, |they hav|
|000006b0| 65 20 74 6f 20 64 6f 20 | 77 69 74 68 20 6d 79 20 |e to do |with my |
|000006c0| 70 6f 77 28 78 2c 78 29 | 20 73 74 61 74 65 6d 65 |pow(x,x)| stateme|
|000006d0| 6e 74 20 62 65 69 6e 67 | 20 61 0a 3e 20 66 6c 6f |nt being| a.> flo|
|000006e0| 61 74 20 61 6e 64 20 6e | 6f 74 20 61 6e 20 69 6e |at and n|ot an in|
|000006f0| 74 2e 20 49 20 61 6d 20 | 6a 75 73 74 20 77 6f 72 |t. I am |just wor|
|00000700| 72 69 65 64 20 61 62 6f | 75 74 20 74 68 65 20 66 |ried abo|ut the f|
|00000710| 75 6e 63 74 69 6f 6e 20 | 65 72 72 6f 72 2e 20 49 |unction |error. I|
|00000720| 66 0a 3e 20 61 6e 79 6f | 6e 65 20 63 61 6e 20 68 |f.> anyo|ne can h|
|00000730| 65 6c 70 20 49 20 77 6f | 75 6c 64 20 67 72 65 61 |elp I wo|uld grea|
|00000740| 74 6c 79 20 61 70 70 72 | 65 61 63 69 61 74 65 20 |tly appr|eaciate |
|00000750| 69 74 2e 20 41 6e 64 20 | 6c 65 74 20 6d 65 20 6b |it. And |let me k|
|00000760| 6e 6f 77 20 77 68 61 74 | 20 49 0a 3e 20 61 6d 20 |now what| I.> am |
|00000770| 64 6f 69 6e 67 20 77 72 | 6f 6e 67 2e 2e 2e 0a 3e |doing wr|ong....>|
|00000780| 20 0a 3e 20 74 68 61 6e | 6b 73 20 76 65 72 79 20 | .> than|ks very |
|00000790| 6d 75 63 68 2e 2e 0a 3e | 20 65 64 77 61 72 64 0a |much...>| edward.|
|000007a0| 3e 20 77 65 6c 6c 73 32 | 40 69 78 2e 6e 65 74 63 |> wells2|@ix.netc|
|000007b0| 6f 6d 2e 63 6f 6d 0a 3e | 0a |om.com.>|. |
+--------+-------------------------+-------------------------+--------+--------+